<template>
  <nut-navbar title="个人资料" left-show @click-back="router.back" />
  <nut-cell title="用户名" :desc="store.studentInfo.username" />
  <nut-cell title="姓名" :desc="store.studentInfo.name" />
  <nut-cell title="手机" :desc="store.studentInfo.phone" />
  <nut-cell title="Email" :desc="store.studentInfo.email" />
  <nut-cell title="性别" :desc="store.studentInfo.gender" />
  <nut-cell title="生日" :desc="store.studentInfo.birthday" />
  <nut-cell title="联系地址" :desc="store.studentInfo.address" />
  <nut-cell title="爱好" :desc="store.studentInfo.hobby" />
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import { useRouter } from 'vue-router'
import { useStudentStore } from '@/stores/student'

const store = useStudentStore()
const router = useRouter()
onMounted(() => store.getInfo())
</script>
